package cn.com.dycc.common.attach.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import cn.com.dycc.common.attach.entity.Attach;
import cn.com.dycc.util.JsonResult;

public interface AttachService {
	
	/**
	 * 
	 * @param attach
	 * @return
	 * @throws NotFoundAttachException
	 */
	public JsonResult insertAttach(Attach attach)throws NotFoundAttachException;
	
	/**
	 * 
	 * @return
	 * @throws NotFoundAttachException
	 */
	public String findAttach_path_seq()throws NotFoundAttachException;
	
	/**
	 * 
	 * @param id
	 * @return
	 * @throws NotFoundAttachException
	 */
	public Attach getAttach(String id,HttpServletRequest request)throws NotFoundAttachException;
	
	/**
	 *  根据messge_no和附件类型获取附件
	 * @param message_no
	 * @param attach_type
	 * @return
	 * @throws NotFoundAttachException
	 */
	public List<Attach> findAttachByMesNoAndType(String message_no,Integer attach_type,HttpServletRequest request)throws NotFoundAttachException;
	
	/**
	 * 删除附件信息
	 * @param id
	 * @return
	 * @throws NotFoundAttachException
	 */
	public String delAttach(HttpServletRequest request,String id)throws NotFoundAttachException;
	
	
}
